package com.xf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xf.entity.AjaxResult;
import com.xf.entity.ExcelImport;
import com.xf.entity.Student;
import com.xf.enums.ImportSudentEnum;
import com.xf.mapper.StudentMapper;
import com.xf.service.StudentService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;
import java.util.*;
import java.util.concurrent.*;
import java.util.stream.Collectors;

/**
 * @author fengjinhao
 * @date 2021/9/18 10:11
 */
@Slf4j
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper,Student> implements StudentService {

    /**
     * 学生信息入库
     *
     * @param totalData 学生信息
     */
    @Override
    public void importStudentInfoData(List<Map<String, Object>> totalData) {
        log.info(totalData.toString());
        this.baseMapper.importStudentInfoData(totalData);
    }
}
